libostree: add versioning macros
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 10 Mar 2017 17:33:52 +0000 (14:33 -0300)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sat, 11 Mar 2017 15:38:56 +0000 (15:38 +0000)
commitfda4a47cae26733e80952b70ad27a0891e20d6c5
treeaee60e0b5fa8ec494a3fe8865dd2a143b20cf1fb
parent75907cb51351cef76d4c8d29374190e21710e767
libostree: add versioning macros

OSTree currently provides no way to inspect the versioning
information at run time, being only available at compile
time through pkg-config.

This is a problem for e.g. Flatpak, that needs to check
whether the 'update-frequency' option is available. Checking
at compile time isn't great since it's not looking for new
symbols, but only if an optional feature is present.

This commit, then, adds a new header that is generated
at compile time, exposing OSTree's versioning information.

Closes: #728
Approved by: cgwalters
Makefile-libostree-defines.am
Makefile-libostree.am
Makefile-ostree.am
apidoc/Makefile.am
configure.ac
src/libostree/ostree-version.h.in [new file with mode: 0644]
src/libostree/ostree.h